﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.ComponentModel;
using DoAnWeb.DTO;
using DoAnWeb.DAO;

namespace DoAnWeb.BUS
{
    public class DonHangBUS
    {
        private DonHangDAO DAO = new DonHangDAO();

        public BindingList<DonHangDTO> GetFromID(string _MaDonHang)
        {
            return DAO.GetFromID(_MaDonHang);
        }

        public BindingList<DonHangDTO> GetList_KhachHang(string _TenTaiKhoan)
        {
            return DAO.GetList_KhachHang(_TenTaiKhoan);
        }

        public bool CheckDaGiao(int _Ma)
        {
            return DAO.CheckDaGiao(_Ma);
        }

        public bool Add(DonHangDTO _DTO)
        {
            return DAO.Add(_DTO);
        }

        public int GetMaxID()
        {
            return DAO.GetMaxID();
        }

    }
}